Hey @beegee-tokyo, good to see you again. getLocalTime() is simply a wrapper around the function calls time() (like now() in arduino timelib) and localtime_r() which updates the struct tm elements. The functions configTime() or configTZTime() init sntp (once in setup) but after that the ntp server is called at hourly intervals. The functionality of timelib is available by the variables in the struct tm structure (tm_hour, tm_min, tm_sec, etc) and by unix-like time function calls (asctime(), ctime(), gmtime(), localtime(), strftime(), etc).
|